package com.lnking.lnkingplace.service.impl;

import com.lnking.lnkingplace.mapper.InspectResultMapper;
import com.lnking.lnkingplace.model.entity.InspectResult;
import com.lnking.lnkingplace.model.request.inspect.InspectResultRequest;
import com.lnking.lnkingplace.service.IInspectResultService;
import com.lnking.starter.mybatis.service.impl.CustomServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sn
 * @since 2022-09-16
 */
@Service
public class InspectResultServiceImpl extends CustomServiceImpl<InspectResultMapper, InspectResult> implements IInspectResultService {

    @Override
    public List<InspectResult> getByRectificationId(String id) {
        return getBaseMapper().getByRectificationId(id);
    }

    /**
     * 通过场所id 检查id 获取填写表
     * @param params
     * @return
     */
    @Override
    public List<InspectResult> getResultList(InspectResultRequest params) {
        return getBaseMapper().getResultList(params);
    }
}
